package com.ft;

import org.springframework.amqp.core.Queue;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;

import com.ft.mq.MQSender;

@SpringBootApplication
@EnableScheduling
public class SpringBoot201AmqpApplication {
	@Bean
	public MQSender mySender() {
		return new MQSender();
	}
	@Bean
	public Queue fooQueue() {
		return new Queue("foo");
	}
	public static void main(String[] args) {
		SpringApplication.run(SpringBoot201AmqpApplication.class, args);
	}
}
